package com.zjcode.cdcer.service;


import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.CerTreatmentInfo;
import com.zjcode.cdcer.model.CerTreatmentOfficalInfo;
import com.zjcode.cdcer.model.TkmSysteminitImportInfo;
import com.zjcode.cdcer.model.basic.JsonObj;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public interface CerTreatmentInfoService {
    void insertTreatment(CerTreatmentInfo cerTreatmentInfo);

    void updateTreatment(CerTreatmentInfo cerTreatmentInfo);

    JsonObj findById(String id);

    Integer getCountBysysteminitId( String systeminitId);

    Map<String, Object> findAllList(PageData pageData);

    JsonObj deleteById(String id);

    void updateTreatmentInfo(PageData pageData);

    List<CerTreatmentInfo> getTreatmentInfoByIds(List<String> ids);

    List<LinkedHashMap<String, Object>> queryAllExportData(PageData pageData);

    void setIsPublishByInfoIds(List<String> ids);

    List<CerTreatmentInfo> getDataByInitId(String id);

    CerTreatmentInfo getTreatmentInfo(TkmSysteminitImportInfo info);
    JsonObj importGJData(MultipartFile file, HttpServletResponse response, String userId);

    List<CerTreatmentInfo> getTreatmentByInitId(List<String> initIds);

    String setDyeCode(String dye);

    String setIsHj(String isHj);
    StringBuilder addValidation();

    int addBatchCerTreatmentInfo(List<CerTreatmentInfo> treatmentInfoList);

}
